import { post, download } from '@/utils/request'

// 机构选择
export async function getCurUserOrgList(params) {
  return post({
    url: '/yos-setting/user/getCurUserOrgList/v001',
    params
  })
}

// 获取数据备份列表
export async function getDataBackupList(params) {
  return post({
    url: '/yos-setting/dataBackup/getDataBackupList/v001',
    params
  })
}

export async function downloadDataBackupFile(params) {
  return download({
    url: '/yos-setting/dataBackup/downloadDataBackupFile/v001',
    responseType: 'blob',
    params
  })
}
